package com.aos.erp.manager.model.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: erp
 * @description: 部门
 * @author: tanzhiyu
 * @create: 2018-11-01 19:17
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("部门")
@TableName("t_sys_department")
public class Department implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="部门ID",hidden=true)
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("部门类型：A:敖雄;C:车管所;J：驾校总校;F：驾校分校;B：报名点;D：部门")
    @TableField("dep_type")
    private String depType;

    @ApiModelProperty("父级ID")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("父级code")
    @TableField("parent_code")
    private String parentCode;

    @ApiModelProperty("部门编号唯一")
    @TableField("dep_code")
    private String depCode;

    @ApiModelProperty("部门名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "创建时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("created")
    private Date created;

    @ApiModelProperty(value = "修改时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("updated")
    private Date  updated;

    @ApiModelProperty(value = "是否删除  （0：否    1：是）",hidden=true)
    @TableField("is_del")
    private Integer isDel;
}
